package com.example.day13;

public class Teacher{
    public void checkScore(int score) throws ScoreException{
        if(score<0||score>100){
            throw new ScoreException("分数不合法");
        }
        System.out.println("分数合法");
    }
}
